/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class RecruitIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public RecruitIndexFiles()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("recruit");
/*    */   }
/*    */ 
/*    */   public List getrecruitList(Map paraMap) throws IOException
/*    */   {
/* 26 */     ArrayList recruitList = new ArrayList();
/* 27 */     SearchData search = new SearchData();
/* 28 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 30 */     String company = ""; String career = ""; String specialty = ""; String class_attr = ""; String area_attr = ""; String degree = ""; String in_date = ""; String order_by = "in_date";
/* 31 */     if (paraMap.get("company") != null) company = paraMap.get("company").toString();
/* 32 */     if (paraMap.get("order_by") != null) order_by = paraMap.get("order_by").toString();
/* 33 */     if (paraMap.get("career") != null) career = paraMap.get("career").toString();
/* 34 */     if (paraMap.get("specialty") != null) specialty = paraMap.get("specialty").toString();
/* 35 */     if (paraMap.get("class_attr") != null) class_attr = paraMap.get("class_attr").toString();
/* 36 */     if (paraMap.get("area_attr") != null) area_attr = paraMap.get("area_attr").toString();
/* 37 */     if (paraMap.get("degree") != null) degree = paraMap.get("degree").toString();
/* 38 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/* 39 */     in_date = in_date.replace("-", "") + "000000";
/*    */ 
/* 41 */     Queue queue = new Queue(new QueueValue[] { new QueueValue(order_by, 2, true) });
/* 42 */     paraList.add(new SearchModel("0", "company", company));
/* 43 */     paraList.add(new SearchModel("0", "career", career));
/* 44 */     paraList.add(new SearchModel("0", "specialty", specialty));
/* 45 */     paraList.add(new SearchModel("0", "class_attr", class_attr));
/* 46 */     paraList.add(new SearchModel("2", area_attr, new String[] { "title", "area_attr" }));
/* 47 */     paraList.add(new SearchModel("1", "in_date", in_date));
/* 48 */     recruitList = search.getSearchInfo(this.file_path, paraList, queue);
/* 49 */     return recruitList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.RecruitIndexFiles
 * JD-Core Version:    0.6.0
 */